home *** CD-ROM | disk | FTP | other *** search
- 130
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- CopyFileProgress
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- (continued)
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Seven Flags are defined:
- --- RECORDSEPARATOR ---
- CP_NOCANCEL
- --- RECORDSEPARATOR ---
- 1
- --- RECORDSEPARATOR ---
- does not show the Cancel button.
- --- RECORDSEPARATOR ---
- CP_NOFILENAME
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- does not display the file names while copying.
- --- RECORDSEPARATOR ---
- CP_STOPONERROR
- --- RECORDSEPARATOR ---
- 4
- --- RECORDSEPARATOR ---
- stop copying if an error occurs
- --- RECORDSEPARATOR ---
- CP_NODIALOG
- --- RECORDSEPARATOR ---
- 8
- --- RECORDSEPARATOR ---
- does not show the dialog box
- --- RECORDSEPARATOR ---
- CP_CALLBACK
- --- RECORDSEPARATOR ---
- 16
- --- RECORDSEPARATOR ---
- enable the copy callback handler
- --- RECORDSEPARATOR ---
- CP_ANIMATE
- --- RECORDSEPARATOR ---
- 32
- --- RECORDSEPARATOR ---
- shows system file copying animation (Windows only)
- --- RECORDSEPARATOR ---
- CP_SIZEUPDATE
- --- RECORDSEPARATOR ---
- 64
- --- RECORDSEPARATOR ---
- updates the callback handler by size
- --- RECORDSEPARATOR ---
- You can add any of these flags together to customize the dialog box.
- --- RECORDSEPARATOR ---
- To implement the callback handler, use the CP_CALLBACK flag. Typically you would also
- --- RECORDSEPARATOR ---
- use the CP_NODIALOG flag and implement your own dialog box. If you use this flag then
- --- RECORDSEPARATOR ---
- you need to add a handler called 'baCopyProgres
- --- RECORDSEPARATOR ---
- sUpdate'. This handler needs to be a
- --- RECORDSEPARATOR ---
- movie script.
- --- RECORDSEPARATOR ---
- This handler will have two arguments passed into it - the percentage copied so far and the
- --- RECORDSEPARATOR ---
- current file being copied. The handler will be called whenever the percentage copied has
- --- RECORDSEPARATOR ---
- increased by one, or a new file is being copied. If you specify the CP_SIZEUPDATE, then
- --- RECORDSEPARATOR ---
- your handler will be called whenever approximately 64k of data has been copied, rather
- --- RECORDSEPARATOR ---
- than by percentage.
- --- RECORDSEPARATOR ---
- To stop copying, you can return 1 in your handler; return 0 or no return to conti
- --- RECORDSEPARATOR ---
- nue copying.
- --- RECORDSEPARATOR ---
- An example handler is listed below
- --- RECORDSEPARATOR ---
- - the update functions would be used to update your own
- --- RECORDSEPARATOR ---
- progress dialog.
- --- RECORDSEPARATOR ---
- on baCopyProgressUpdate percentage, filename
- --- RECORDSEPARATOR ---
- updateProgressBar percentage
- --- RECORDSEPARATOR ---
- updateStatus fileName
- --- RECORDSEPARATOR ---
- if keyPressed( " " ) then -- if user presses space bar, stop copying
- --- RECORDSEPARATOR ---
- return 1
- --- RECORDSEPARATOR ---
- end if
- --- RECORDSEPARATOR ---
- end
- --- RECORDSEPARATOR ---
- The callback handler is only available on Director.